{#**
*
* 功能描述（列表模板）
*
* @author suoya <jlusuoya@gmail.com>
* @version 1
*#}
{#include file="header.tpl" title="title" active="trade" #}
{#include file="define.tpl" scope=parent#}
<div class="content middle">
    <div class="ui breadcrumb">
        <a class="section" href="index.php">主页</a>
        <i class="right"></i>
        <a class="active section">交易记录</a>
    </div>
    <table class="ui table segment">
        <thead>
            <tr>
				<th>ID</th>
				<th>业务</th>
				<th>类型</th>
				<td>状态</td>
                <th>开始时间</th>
                <th>最后更新</th>
				<th>金额</th>
                <th>订单ID</th>
				<th>用户</th>
				<th>返回状态</th>
				<th>交易单号</th>
                <th>备注</th>
            </tr>
        </thead>
        <tbody>
            {#foreach $listdata as $item#}
                <tr>
					<td>{#$item['id']#}</td>
					<td>{#$g_trade_type[$item['trade_type']]#}</td>
					<td>{#$g_trade_method[$item['trade_type']][$item['type']]#}</td>
                    <td>{#$g_trade_status[$item['status']]#}</td>
					<td>{#$item['createtime']#}</td>
					<td>{#if $item['lasttime'] != '0000-00-00 00:00:00'#}{#$item['lasttime']#}{#/if#}</td>
					<td>{#$item['amount']#}</td>
					<td>{#$item['data_id']#}</td>
                    <td><a href="#" onclick="return showuser({#$item['user_id']#})">ID {#$item['user_id']#}</a></td>
                    <td>{#$item['ret_status']#}</td>
                    <td>{#$item['order_id']#}</td>
                    <td>{#$item['info']#}</td>
                </tr>
            {#/foreach#}
        </tbody>
        <tfoot>
            <tr>
                <th colspan="13" style="font-style: normal;">
                    {#include file="paging_bar.tpl"#}
                </th>
            </tr>
        </tfoot>
    </table>
</div>
{#include file="footer.tpl" #}
